import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';

export default async function a007(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	// 取消 日期
	const id = args[0].target.dataset.feidaoId;
	const begin_input = fd.data.node.querySelector('[data-feidao-id=begin_' + id + ']') as HTMLInputElement;
	const end_input = fd.data.node.querySelector('[data-feidao-id=end_' + id + ']') as HTMLInputElement;
	begin_input.value = "";
	end_input.value = "";
	begin_input.removeAttribute("disabled");
	end_input.removeAttribute("disabled");
	const input_check = fd.data.node.querySelector('[data-feidao-id=check_' + id + ']') as HTMLInputElement;
	input_check.checked = false;
}
